package club.chenlinghong.order.exception;

import club.chenlinghong.order.enums.ResultEnum;

/**
 * @Description TODO
 * @Author chenlinghong
 * @Date 2019/7/1 15:02
 * @Version V1.0
 */
public class OrderException extends RuntimeException {

    private Integer code;

    public OrderException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public OrderException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }


}
